package com.renjianbo.project.module.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.renjianbo.project.module.system.model.sys_user.SysUser;
import com.renjianbo.project.module.system.model.sys_user.SysUserDTO;
import com.renjianbo.project.module.system.model.sys_user.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统-用户 Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2022-05-20
 */
@Repository
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /** 查询系统-用户数据 */
    List<SysUserDTO> list(@Param("req") SysUserSearchReq req);

    /** 查询系统-用户分页数据 */
    IPage<SysUserDTO> list(@Param("req") SysUserSearchReq req, Page<SysUserDTO> page);

    /** 根据id查询数据 */
    SysUserDTO getById(Long id);

}
